package com.xing.binbackend.pattern.factory12.ecommerce;

import org.springframework.stereotype.Component;

@Component("Alipay")
class Alipay implements Payment {
    @Override
    public void pay(double amount) {
        System.out.println("支付宝支付：" + amount + "元");
    }
}